package Game;

public class Block implements Cloneable{
    public Position position;

    public void move(ActionType dir){
        this.position.move(dir);
    }

    public Block(int x, int y){
        this.position = new Position(x ,y);
    }
    public Block(){
        this.position = new Position();
    };

    @Override
    public Block clone() throws CloneNotSupportedException {
        Block cloned = (Block) super.clone();
//        Game.Block cloned = new Game.Block();
        cloned.position = this.position.clone();
        return cloned;
    }
};